//
//  GoodsCell.m
//  11213
//
//  Created by student on 16/3/8.
//  Copyright © 2016年 niit. All rights reserved.
//

#import "GoodsCell.h"

@implementation GoodsCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setGoods:(GoodsModel *)goods{
    _goods=goods;
  //@property(nonatomic,strong)NSString *images,*productName,*price,*descriptio,*saleCount,*forsale;
    
    self.imagesView.image=[UIImage imageNamed:goods.images];
    self.priceLable.text=[NSString stringWithFormat:@"¥%@",goods.price];
    self.productNameLable.text=goods.productName;
    self.descriptioLable.text=goods.descriptio;
    self.saleCountLable.text=goods.saleCount;
    self.forsaleLable.text=goods.forsale;
}

@end
